package com.SouthernWall_404.age_tool.common.init;

import com.SouthernWall_404.age_tool.AgeTool;
import com.SouthernWall_404.age_tool.common.world.Inventory.MusicBlockMenu;
import net.minecraft.world.inventory.MenuType;
import net.minecraftforge.common.extensions.IForgeMenuType;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class ModMenuType {
    public static final DeferredRegister<MenuType<?>> MENU_TYPE = DeferredRegister.create(ForgeRegistries.MENU_TYPES, AgeTool.MODID);

    public static final RegistryObject<MenuType<MusicBlockMenu>> MUSIC_BLOCK_MENU = MENU_TYPE.register("music_block_menu",()-> IForgeMenuType.create((windowId, inv, data) ->new MusicBlockMenu(windowId,inv,data.readBlockPos())));
}
